import java.util.Random;
import java.util.Scanner;
import java.text.NumberFormat;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;


public class 四则运算练习器Test {
    public static void main(String[] args) throws ScriptException{
        ScriptEngineManager manager2 = new ScriptEngineManager();
        ScriptEngine se3 = manager2.getEngineByName("js");
        Boolean r1 =(Boolean)se3.eval("2+5==7");
        System.out.println(r1);
        Boolean r2 =(Boolean)se3.eval("4-9==-5");
        System.out.println(r2);
        Boolean r3 =(Boolean)se3.eval("5*(1+3)==20");
        System.out.println(r3);
        Boolean r4 =(Boolean)se3.eval("13-2*5==3");
        System.out.println(r4);
        Boolean r5 =(Boolean)se3.eval("5+2==8");
        System.out.println(r5);
        Boolean r6 =(Boolean)se3.eval("3/7==3/7");
        System.out.println(r6);
        Boolean r7 =(Boolean)se3.eval("2/6==1/3");
        System.out.println(r7);
    }
}
